package com.dev.security.service;

import com.dev.security.entity.Role;
import com.dev.security.vo.PageVo;
import com.dev.security.vo.RoleVo;
import com.dev.security.vo.UserVo;

import java.util.List;

/**
 * 此处为类介绍
 *
 * @author yuboon
 * @version v1.0
 * @date 2020/04/04
 */
public interface UserService {

    public int save(UserVo userVo);

    public int update(UserVo userVo);

    public int remove(int id);
    public int batchRemove(String ids);

    public PageVo<UserVo> selectList(UserVo userVo, PageVo pageVo);

    public int assignRole(int userId,String roleIds);

    public List<RoleVo> selectAssignRole(int userId);

    String selectPasswordByUsername(Object username);

    UserVo selectByUsername(String username);

    int updatePass(String oldPass,String newPass);
}
